<?php
include COMMON_PATH . 'Conf/db.php';

return array(
	//'配置项'=>'配置值'
	//测试环境开关, true:测试环境, false:正式环境
	'TEST_SWITCH'=> false,
	'STATIC_SWITCH' => true,
	
	//数据库配置
	'DB_HOST'   => IDB_HOST,
	'DB_USER'   => IDB_USER,
	'DB_PWD'    => IDB_PWD,
	'DB_PORT'   => IDB_PORT,
	'DB_NAME'   => IDB_NAME,
	'DB_PREFIX' => IDB_PREFIX,

	//num_f的配置
	'PRECISION' => 2,
	//购物车失效
	'CART_LIFT_TIME' => 1,
	'CART_PRE' => 'cart_',

	//response_status
	"RESPONSE"=>array("SUCCESS"=>"1001","FAILED"=>"1002","WARN"=>"1003","SIGNFAILED"=>"1004"),

	//图片服务器
	'HTTP_IMG'=>IHTTP_IMG,
	//静态文件服务器
	'HTTP_STATIC'=>'http://m.ziranfresh.com',
	//本项目域名
	'HTTP_DOMAIN'=>'http://m.ziranfresh.com',
	'COOKIE_DOMAIN'=>'.ziranfresh.com',
	// API地址
	'ALIPAY_API'=>'https://mapi.alipay.com/gateway.do',
	
	
	//短信接口
	'SMS_MSG_API'=>'http://apis.baidu.com/kingtto_media/106sms/106sms',
	'SMS_MSG_APIKEY'=>'d34dfc3fab88eb04595862997e35a4c8',
	
	//MCHU `creator`, `editor`
	"APP"=>"APP",

	//支付宝微信交易号前缀
	'ALIPAY_PREFIX'=>'ALIPAY_',
	'WXMPAY_PREFIX'=>'WXMPAY_',
	
	// 免邮订单价格
	'FREE_SHIPPING_OVER'=>150,
	'DEFAULT_SHIPPING_FEE'=>10,
	
	//unit
	'GOODS_UNIT' => array('PIECE'=>1, 'PIECE_1'=>2, 'POTION'=>3, 'JAR'=>4, 'BAG'=>5, 'CHEST'=>6, 'BOX'=>7, 'PACKAGE'=>8,
							'GRAM'=>9, 'GRAM500'=>10, 'TAEL'=>11, 'CATTY'=>12, 'KG'=>13, 'TON'=>15, 'BOTTLE'=>16, 'PIECE_2'=>17,
							'TIAO'=>18, 'KUAI'=>19, 'LAN'=>20, 'ZHANG'=>21, 'BAN'=>22, 'TONG'=>23, 'BEN'=>24, 'JUAN'=>25,
							'SHUANG'=>26, 'JIE'=>27),
	'GOODS_UNIT_NAME' => array(1=>'个', 2=>'件', 3=>'份', 4=>'罐', 5=>'袋', 6=>'箱', 7=>'盒', 8=>'包',
							9=>'克', 10=>'500克', 11=>'两', 12=>'斤', 13=>'公斤', 15=>'吨', 16=>'瓶', 17=>'只',
							18=>'条', 19=>'块', 20=>'篮', 21=>'张', 22=>'板', 23=>'桶', 24=>'本', 25=>'卷',
							26=>'双', 27=>'节'),
							
	'ORDER_STATUS_NAME' => array(-1=>'未下单', 0=>'已下单',2=>'配货中',4=>'商品出库',9=>'等待收货',10=>'收货完成',20=>'已废除'),
	'ORDER_STATUS' => array('NEW'=>-1,'WAITING_PROCESS'=>0,'PICKING'=>2,'PICKED'=>4,'REACHED'=>9,'RECEIVED'=>10,'ABOLISHED'=>20),
	'PAYMENT_STATUS_NAME'=>array(1=>'待支付',10=>'已支付',20=>'未支付关闭'),
	'PAYMENT_STATUS'=>array('WAITING_PAY'=>1,'PAYED_CLOSE'=>10,'UNPAY_CLOSE'=>20),
	'PAYMENT_TYPE_NAME'=>array(0=>'未选择',1=>'微信',2=>'支付宝'),
	'PAYMENT_TYPE'=>array('WAITING_CHOOSE'=>0,'WXMPAY'=>1,'ALIPAY'=>2),
	
	'ID_PREFIX'=>array('ONLINE_FLOW'=>'OPF',
					   'UDA'=>'UDA',
					   'USER'=>'YH',
					   'ORDER'=>'OD',
					   'ORDER_SHIP'=>'OS',
					   'PAYMENT'=>'OP'),
					   
					   
	'DEFAULT_HEAD_IMG'=>'/Public/Image/Test/0.png',
	
	'BAIDU_CONFIG'=>array('APIKEY_V2'=>'3g0LAFfO8GOE699NHFSrQ1W8',
						  'SECRETKEY_V2'=>'5y5QvFmswN5RLr98MNRIIXnD4fBAXoB0',
						  'APIKEY_V1'=>'MKik9OB6hWakwjWi3b16Hx4y',// 旧的apikey，目前只有ios在用，待对接新的apikey
						  'SECRETKEY_V1'=>'qP7hEzEVOIz4ag47DFsgB7V4z82hxP0Y',
						  
						  ),
	'ALIDAYU_CONFIG' =>array('app_key'=>'23290858',
							 'app_secret'=>'12fa795b8de8fc6a95baf0538e2ce15f'),
	'ALIPAY_CONFIG'=>array('partner'=>'2088801834247870',
						   'key'=>'3ly04b4surz2we2k4klex1wlkegzdruz',
						   'seller_email'=>'18694004@qq.com',
						   'notify_url'=>'http://m.ziranfresh.com/Home/Alipay/notifyUrl',
						   'call_back_url'=>'http://m.ziranfresh.com/Home/Alipay/callBackUrl',
						   'merchant_url'=>'http://m.ziranfresh.com/Home/Account/orderCenter',
						   'subject'=>'优厨供支付宝移动支付',
						   'private_key_path'=>'http://m.ziranfresh.com/ThinkPHP/Library/Vendor/Alipay/key/rsa_private_key.pem',
						   'ali_public_key_path'=>'http://m.ziranfresh.com/ThinkPHP/Library/Vendor/Alipay/key/alipay_public_key.pem',
						   'sign_type'=>'0001',
						   'input_charset'=>'utf-8',
						   // 'cacert'=>getcwd().'\\cacert.pem',
						   'cacert'=>'http://m.ziranfresh.com/ThinkPHP/Library/Vendor/Alipay/cacert.pem',
						   'transport'=>'http',
						   'terminal_type'=>'WAP',
						   'scene_code'=>'PAYMENT',
						   'order_category'=>'生活^生鲜^食材',
						   'payment_type'=>'1',
						   'pay_expire'=>'15'
						   ),
	'WXMPAY_CONFIG'=>array(
						   'APPID'=>'wx36308f2f5563be86',
						   'APPSECRET'=>'6cf95cd64633c097fb76ca48a65dcdf1',
						   'MCHID'=>'1283987201',
						   'KEY'=>'ca9bc0aaa200d110b7829b31aa454731',
						   
						   // 'APPID'=>'wx3e6daa2736d5af39',
						   // 'APPSECRET'=>'ca04a170fecfe54a73032ed073f6f396',
						   // 'MCHID'=>'1236401302',
						   // 'KEY'=>'b04687ccd378d409aa097c5855bf168d',
						   'JS_API_CALL_URL'=>'http://m.ziranfresh.com/Home/Wxmpay/index/',
						   'SSLCERT_PATH'=>'http://m.ziranfresh.com/ThinkPHP/Library/Vendor/Wxmpay/cacert/apiclient_cert.pem',
						   'SSLKEY_PATH'=>'http://m.ziranfresh.com/ThinkPHP/Library/Vendor/Wxmpay/cacert/apiclient_key.pem',
						   'NOTIFY_URL'=>'http://m.ziranfresh.com/Home/Wxmpay/notifyUrl/',
						   'CURL_TIMEOUT'=>30
						   ),
	//微信消息推送模板
	'WEXIN_MSG_TEMPLATE' => array('GROUPON'=>'34oMAD4eXUiOrqFz3sEJbsEzsOeqRvfQtT_NgPlW-bk'),
	
);